package zdh.avatar.base;

import java.awt.Color;
import java.io.*;

public class ElementPanel implements Serializable {

    private static final long serialVersionUID = 1L;
    private String panelName;
    private Color bgColor;
    private int tabIndex;

    public ElementPanel(String panelName, Color bgColor) {
        this.panelName = panelName;
        this.bgColor = bgColor;
    }

    public ElementPanel(String panelName, Color bgColor, int tabIndex) {
        this.panelName = panelName;
        this.bgColor = bgColor;
        this.tabIndex = tabIndex;
    }
    
    public String getPanelName() {
        return panelName;
    }

    public Color getBgColor() {
        return bgColor;
    }
    
    public int getTabIndex(){
        return tabIndex;
    }
    
    @Override
    public String toString(){
        return panelName;
    }
}
